#ifndef CONFIGURATIONFORM_H
#define CONFIGURATIONFORM_H

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include <QSpinBox>
#include <QSqlTableModel>
#include <QDataWidgetMapper>
#include <QSqlRelationalDelegate>

#include "urlconfigureline.h"
#include "priorityconfigureline.h"
#include "folderconfigureline.h"
#include "centerform.h"
#include "downloadmanager.h"

class ConfigurationForm : public QWidget
{
    Q_OBJECT
public:
    explicit ConfigurationForm(QWidget *parent);
    ~ConfigurationForm();
    UrlConfigureLine *urlLine;
    FolderConfigureLine *folderLine;
    PriorityConfigureLine *priorityLine;
    QPushButton *okButton;
private:
    QSqlTableModel*             tableModel;

    QDataWidgetMapper*          dataMapper;
signals:
    void dbUpdate();
public slots:
    void emitDbUpdate();
    void start();
};

#endif // CONFIGURATIONFORM_H
